
#pragma once


#include "JniObject.h"


class Test : public JniObject
{
public:
    DECLARE_CLASS_NAME("kaz.Test");

    BEGIN_NATIVE_METHODS()
        ON_NATIVE_METHOD("native_test", "()V", _native_test)
        // ON_NATIVE_METHOD("native_test1", "()V", _native_test)
    END_NATIVE_METHODS()


    BEGIN_JAVA_METHODS()
        ON_JAVA_METHOD(mTestMethod, "onTest", "(I)V")
    END_JAVA_METHODS()

    Test();
    void callJava();

private:
    static void _native_test(JNIEnv* env, jobject thiz);
    void native_test();
    jmethodID  mTestMethod;
};


